/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.zcm.modules.bzy.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.validator.constraints.Length;

import com.zcm.common.persistence.DataEntity;

/**
 * 益盟新闻Entity
 * @author www
 * @version 2018-10-29
 */
public class BzyYmyd extends DataEntity<BzyYmyd> {
	
	private static final long serialVersionUID = 1L;
	private String stockName;		// stock_name
	private String time;		// time
	private String title;		// title
	private String brief;		// brief
	@JsonIgnore
	private int unionFlag = 0;

	public BzyYmyd() {
		super();
	}

	public BzyYmyd(String id){
		super(id);
	}

	@Length(min=0, max=20, message="stock_name长度必须介于 0 和 20 之间")
	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}
	
	@Length(min=0, max=20, message="time长度必须介于 0 和 20 之间")
	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}
	
	@Length(min=0, max=255, message="title长度必须介于 0 和 255 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=2048, message="brief长度必须介于 0 和 2048 之间")
	public String getBrief() {
		return brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}

	public void setUnionFlag(int unionFlag) {
		this.unionFlag = unionFlag;
	}

	public int getUnionFlag() {
		return unionFlag;
	}
}